<% content_for(:header) do %>
<div id="nav">
  <ul>
    <li><a href="/intro">活动介绍</a></li>
    <li><a href="/join">如何参与</a></li>
    <li><a href="/news">最新动态</a></li>
    <li><a href="/contact">联系我们</a></li>
  </ul>
</div>
<div id="pagetitle">
  <h1>注 册 新 用 户</h1>
</div>
<% end %>

<div id="content">
  <div id="user-tb" style="margin-bottom:100px">
    <p class="tips center" style="margin-top:20px">如果您是多背一公斤的论坛用户，可直接使用您论坛的注册邮件地址和密码<%= link_to "登录", login_path %></p>
  	
  	<% form_for :user, :url => users_path do |f| -%>
  	<table border="0" cellspacing="5" cellpadding="5" align="center">
  	 <tr>
  	   <td width="80" class="right" valign="top">电子邮件</td>
  	   <td width="250"><%= f.text_field :email %>
  	      <%= error_explan @user, "email", "电子邮件格式不正确或已被占用" %></td>
  	 </tr>
  	 <tr>
  	   <td width="80" class="right">用户名</td>
  	   <td width="250"><%= f.text_field :login %>
  	     <%= error_explan @user, "login", "用户名格式不正确" %>
  	     </td>
  	 </tr>
  	 <tr>
  	   <td width="80" class="right">密码</td>
  	   <td width="250"><%= f.password_field :password %>
  	     <%= error_explan @user, "password", "密码格式不正确" %></td>
  	 </tr>
  	 <tr>
  	   <td width="80" class="right">确认密码</td>
  	   <td width="250"><%= f.password_field :password_confirmation %>
  	     <%= error_explan @user, "password_confirmation", "确认密码不正确" %></td>
  	 </tr>
  	 <tr>
  	   <td colspan="2" class="center"><%= submit_tag '注 册' %></td>
  	 </tr>
  	</table>
  	<% end -%>
  </div>
</div>
